// AWTEvent.h: interface for the AWTEvent class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_AWTEVENT_H__DC9C0D28_40B4_11D2_A3F1_006097A44215__INCLUDED_)
#define AFX_AWTEVENT_H__DC9C0D28_40B4_11D2_A3F1_006097A44215__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#include "AWTObject.h"

class AFX_EXT_CLASS AWTEvent : public AWTObject  
{
DECLARE_DYNAMIC(AWTEvent);
public:
	AWTEvent(AWTObject* source, int id);
	virtual ~AWTEvent();

	AWTObject* getSource()
		{return m_source;}
	int getId()
		{return m_id;}
	void consume()
		{m_bConsumed = TRUE;}
	BOOL consumed()
		{return m_bConsumed;}

protected:
	AWTObject* m_source; 
	int m_id; 
	BOOL m_bConsumed;
};

#endif // !defined(AFX_AWTEVENT_H__DC9C0D28_40B4_11D2_A3F1_006097A44215__INCLUDED_)
